import Img from './Img.vue'
import ImgAdd from './ImgAdd.vue'
import ImgEdit from './ImgEdit.vue'
import ImgSearch from './ImgSearch.vue'
import ImgView from './ImgView.vue'

const components = [
  Img,
  ImgAdd,
  ImgEdit,
  ImgSearch,
  ImgView
]

const main = {
  install(Vue) {
    components.map((component) => {
      Vue.component(component.name, component)
    })
  }
}

export default main
